﻿@using System.ComponentModel.DataAnnotations
@model TaskManager.Domain.BusinessObjects.ProjectState
 
@{
    var field = Model.GetType().GetField(Model.ToString());
 
    if (field != null)
    {
        var display = ((DisplayAttribute[])field.GetCustomAttributes(typeof(DisplayAttribute), false)).FirstOrDefault();
        if (display != null)
        {
            @display.Description
        }
    }
}